package com.huawei.knowledge.doc.mapper;

import com.huawei.knowledge.doc.model.DocClassifyModel;
import com.huawei.knowledge.doc.model.DocumentModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Administrator on 2018/4/22/022.
 */
@Mapper
@Component(value = "documentMapper")
public interface DocumentMapper {

    public List<DocClassifyModel> queryDocClassifyList();

    public List<DocumentModel> queryDocList(@Param("classifyIndex") String classifyIndex);

    public List<DocumentModel> queryDoc(@Param("classifyIndex") String classifyIndex,
                                        @Param("docIndex") String docIndex);

    public void updateDocViewTimes(@Param("classifyIndex") String classifyIndex,
                                                  @Param("docIndex") String docIndex,
                                                  @Param("viewTimes") int viewTimes);


}
